package com.chinatechstar.decis.dto;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Rei
 * @date 2021/7/27
 */
public class GeneralEffectResultDTO implements Serializable {
    private static final long serialVersionUID = -1573463361517643228L;

    /**
     * 总井数
     */
    private Integer effectiveTotal;

    /**
     * 措施有效数量
     */
    private Integer effectiveCount;

    /**
     * 措施有效率
     */
    private BigDecimal effectiveRate;

    /**
     * 单井综合效果评价列表
     */
    private List<GeneralImplEffectDTO> list;

    public Integer getEffectiveTotal() {
        return effectiveTotal;
    }

    public void setEffectiveTotal(Integer effectiveTotal) {
        this.effectiveTotal = effectiveTotal;
    }

    public Integer getEffectiveCount() {
        return effectiveCount;
    }

    public void setEffectiveCount(Integer effectiveCount) {
        this.effectiveCount = effectiveCount;
    }

    public BigDecimal getEffectiveRate() {
        return effectiveRate;
    }

    public void setEffectiveRate(BigDecimal effectiveRate) {
        this.effectiveRate = effectiveRate;
    }

    public List<GeneralImplEffectDTO> getList() {
        return list;
    }

    public void setList(List<GeneralImplEffectDTO> list) {
        this.list = list;
    }

    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(obj, this);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
